package com.lwp.project.third.rest.module.sys.controller;

import com.lwp.project.common.bean.ResponseEntity;
import com.lwp.project.third.provider.module.sys.dto.SysRequestLogDTO;
import com.lwp.project.third.provider.module.sys.service.impl.ISysRequestLogService;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
/**
 * <p>
 * 请求日志表 前端控制器
 * </p>
 *
 * @author linwp
 * @since 2018-04-24
 */

@RestController
@RequestMapping("/sys/request/log/")
public class SysRequestLogController {

    @Resource(name = "sysRequestLogServiceImpl")
    private ISysRequestLogService  sysRequestLogService;

    @RequestMapping("add")
    public ResponseEntity<Boolean> add(@RequestBody SysRequestLogDTO dto){
        sysRequestLogService.save(dto);
        return new ResponseEntity<>(true);
    }

}

